package org.jeecg.modules.tencent_esign.tencent_contract.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "合同模板对象信息")
public class TemplateInfoDTO {
    @ApiModelProperty(value = "合同模板ID")
    private String templateId;

    @ApiModelProperty(value = "合同模板名称")
    private String templateName;

    @ApiModelProperty(value = "合同描述")
    private String description;

    @ApiModelProperty(value = "合同模板填充控件对象")
    private List<Components> Components;

    @Data
    @ApiModel(value = "合同填充控件内容")
    public static class Components {
        @ApiModelProperty(value = "控件名称")
        private String componentName;

        @ApiModelProperty(value = "控件值")
        private String componentValue;
    }
    @ApiModelProperty(value = "签署方RecipientId对象")
    private List<Recipients> Recipients;

    @Data
    @ApiModel(value = "签署方RecipientId")
    public static class Recipients {
        @ApiModelProperty(value = "控件ID")
        private String recipientId;

        @ApiModelProperty(value = "类型")
        private String recipientType;
        @ApiModelProperty(value = "角色")
        private String roleName;
    }

}
